﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NotepadDemo.Helps
{
    public class JsonWrapper
    {
        public static string Encode(object value)
        {
            return Newtonsoft.Json.JsonConvert.SerializeObject(value);
        }
        public static T Decode<T>(string value)
        {
            return Newtonsoft.Json.JsonConvert.DeserializeObject<T>(value);
        }
    }
}